package com.example.demo.service;

import org.springframework.data.domain.Page;

import java.util.List;

public interface BaseService<T> {
    public T findByID(int id);

    public List<T> findAll();

    public T save(T t);

    public boolean deleteByid(int id);

    public T updateById(T t);

    public Page<T> findAllByPage(int pageNum);


}
